package org.argetr.resim.proc.data;

import javax.media.jai.Histogram;

/*
Definition
  Histogram representation is a 2-D array of size nBand x nBin where
  [b][bin] represents number of pixels in the image band b having value bin
 */
public class HistogramDA extends Data {
  public HistogramDA(Histogram hist){
		setData(hist);
		setDataType(Data.HISTOGRAM);
  }
  public int [][] getBins(){
	  return ((Histogram)getData()).getBins();
  }
  public int [] getBins(int bandIndex){
	  return ((Histogram)getData()).getBins()[bandIndex];
  }
  public int getNBands(){
	  return ((Histogram)getData()).getBins().length;
  }
  public int getNBins(){
	  return ((Histogram)getData()).getBins()[0].length;
  }
}
